package mybatis;

//import org.apache
//import java.io.InputStream;
//import org.*;
//
///**
// * @author tongchen
// * @create 2022-11-08 17:46
// */
//public class TestUser {
//    public static void main(String[] args) {
//        //1.加载mybatis核心配置文件并加载factory
//        String resource = "mybatis-config.xml";
//        InputStream inputStream = Resources.getResourceAsStream(resource);
//        SqlSessionFactory sqlSessionFactory = new SqlSessionFactoryBuilder().build(inputStream);
//        //2.利用factory创建session对象
//        //3.执行sql
//        //4.释放资源
//
//    }
//}
